<div class="search-box">
	<form class="search_form layui-form" lay-filter="offer_search_form">
		<div class="layui-inline search-radio-box">
			<div class="layui-input-inline">
				<input type="radio" name="audit_state" value="" title="全部" checked>
				<input type="radio" name="audit_state" value="1" title="通过">
				<input type="radio" name="audit_state" value="2" title="等待审核">
				<input type="radio" name="audit_state" value="3" title="失败">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="offer_list" lay-filter="offer_list"></table>
<script>
	var offer_list_url = "{:url('offer/ajaxList')}";
	var offer_delete_url = "{:url('offer/ajaxDelete')}";
	var offer_save_url = "{:url('offer/saveData')}";
	var offer_cols = {$cols};
	var offer_view = "{:url('offer/views')}";
</script>
<script type="text/html" id="offerToolbar">
  <div class="layui-btn-container">
    <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="delOffer"><i class="layui-icon layui-icon-delete"></i>删除</button>
  </div>
</script>
<script type="text/html" id="pingzheng_urlTpl">
	{{# if(d.pingzheng_url){}}
	<div><a href="{{d.pingzheng_url}}" target="_blank">查看凭证</a></div>
	{{# }}}
</script>
<script type="text/html" id="offer_tool">
	<div class="layui-btn-group">
	{{# if(d.audit_state != 1){}}
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="viewOffer" data-title="报价单修改"><i class="layui-icon layui-icon-file"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-title="删除报价单"><i class="layui-icon layui-icon-delete"></i></a>
		
	{{# } }}
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-file"></i></a>
	</div>
</script>
<script type="text/html" id="audit_stateTpl">
	{{# if(d.audit_state == 1){}}
	<div class="layui-anim circle layui-bg-blue" data-title="通过">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.audit_state == 2){ }}
	<div class="layui-anim circle layui-bg-orange" data-title="等待">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="驳回">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script src="/static/js/offer/index.js" type="text/javascript" charset="utf-8"></script>